package com.xcc.netty.socket;

import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author frosty
 * @description
 * @date 2019-12-30 30:10:31
 */


public class MyServerSocket {

    public static void main(String[] args) {
        System.out.println("server set up");
        try {
            ServerSocket socket=new ServerSocket(8761);
            while (true) {
             Socket accept = socket.accept();
                   new Thread(new SerThread(accept)).start();
               }
    }catch (Exception e){
        }
    }
}
